<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:mo="https://gitee.com/aun/Timo">
<head th:replace="/common/template :: header(~{::title},~{::link},~{::style})">
</head>
<body>
    <div class="timo-detail-page">
        <div class="timo-detail-title">基本信息</div>
        <table class="layui-table timo-detail-table">
            <tr>
                <th width='100px'>礼品名称</th>
                <td th:text="${product.prodName}"></td>
                <th width='100px'>礼品所属机构</th>
                <td th:text="${product.companyName}"></td>
            </tr>
            <tr>
                <th width='100px'>创建时间</th>
                <td th:text="${product.createTime}"></td>
                <th width='100px'>更新时间</th>
                <td th:text="${product.updateTime}"></td>
            </tr>
            <th:block th:if="${product.kinds !=2}">
            <tr>
                <th width='100px'>价格</th>
                <td th:text="${product.oldPrice}"></td>
                <th width='100px'>积分</th>
                <td th:text="${product.points}"></td>
            </tr>
            </th:block>
            <tr>
                <th width='100px'>礼品种类</th>
                <td th:text="${product.strKinds}"></td>
                <th width='100px'>礼品库存</th>
                <td th:text="${product.numbers}"></td>
            </tr>
            <tbody th:if="${product.kinds ==2}">
                <th:block th:each="item:${listProd}">
                    <tr>
                    <th width='70px'>型号</th>
                    <td th:text="${item.subname}"></td>
                    <th width='70px'>价钱</th>
                    <td th:text="${item.price}"></td>
                    </tr>
                    <tr>
                        <th width='60px'>积分</th>
                        <td th:text="${item.subPoints}"></td>
                        <th>图片</th>
                        <td ><img th:src="${item.picUrl}"></td>

                    </tr>


                </th:block>
            </tbody>
                <th>详细介绍</th>
                <td colspan="4" th:text="${product.profiles}"></td>
            </tr>

            <tr>
                <th>缩略图(小)</th>
                <td colspan="4" ><img th:src="${product.minipic}"></td>
            </tr>
            <tr>
                <th>缩略图(大)</th>
                <td colspan="4"><img th:src="${product.thumb}"></td>
            </tr>
            <tr>
                <th>礼品大图</th>
                <td colspan="4" >
                    <th:block th:each="item:${urls}">
                        <img th:src="${item}">
                    </th:block>
                </td>
            </tr>
            </tbody>
        </table>

    </div>



<script th:replace="/common/template :: script"></script>
</body>
</html>
